package com.handinfo.android.core.ui;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;
import android.widget.ImageButton;

public class UIImageButton extends UIButton
{

	public UIImageButton(Context context)
	{
		super(context);

	}

	//设置背景图片
	public void setImageButton(View view, Bitmap bm1, Bitmap bm2)
	{
		ImageButton ib = (ImageButton) view;
//		ib.setImageResource(bm1);
		if (m_clickable == false) {
			ib.setImageBitmap(bm1);
		}
		if (m_clickable == true) {
			ib.setImageBitmap(bm2);

		}

	}
}
